<?php


/**
 * @author Kevin
 * @version 1.0
 * @created 06-d�c.-2011 20:07:13
 */
class Transaction
{

	var $id;
	var $count;
	var $date;
	var $description;
	var $hour;
	var $in;
	var $out;
	var $type;

	function Transaction()
	{
	}

	function delete()
	{
	}

	public function setId($id)
	{
	    $this->id = $id;
	}
	
	public function getId()
	{
	    return $this->id;
	}
	
	public function setCount($count)
	{
	    $this->count = $count;
	}
	
	public function getCount()
	{
	    return $this->count;
	}
	
	public function setDate($date)
	{
	    $this->date = $date;
	}
	
	public function getDate()
	{
	    return $this->date;
	}
	
	public function setHour($hour)
	{
	    $this->hour = $hour;
	}
	
	public function getHour()
	{
	    return $this->hour;
	}
	
	public function setDescription($description)
	{
	    $this->description = $description;
	}
	
	public function getDescription()
	{
	    return $this->description;
	}
	
	public function setIn($in)
	{
	    $this->in = $in;
	}
	
	public function getIn()
	{
	    return $this->in;
	}
	
	public function setOut($out)
	{
	    $this->out = $out;
	}
	
	public function getOut()
	{
	    return $this->out;
	}
	
	public function setType($type)
	{
	    $this->type = $type;
	}
	
	public function getType()
	{
	    return $this->type;
	}
	
	public function getBalance()
	{
	    return $this->getIn() - $this->getOut();
	}
}
?>